<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/common/css/bootstrap.min.css">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/common/css/bootstrap-table.min.css">
<script type="text/javascript">
	function checkDel() {
		if (confirm("确定要删除吗？")) {
			return true;
		} else {
			return false;
		}
	}
</script>

</head>
<body>
	<div class="page-wrap">
		<div class="container-fluid">
			<div class="row-fluid">
				<h3>气象信息列表</h3>
				<div class="well-content">
					<table class="table table-striped table-bordered"
						id="managed-table" data-toggle="table" data-show-columns="true"
						data-search="true" data-show-refresh="true"
						data-show-toggle="true" data-pagination="true">
						<thead>
							<tr>
								<th>ID号</th>
								<th>行政id</th>
								<th>下雨量</th>
								<th>温度(℃)</th>
								<th>风速</th>
								<th>风向</th>
								<th>污染指数</th>
								<th>更新时间</th>
								<th>发布者</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>

							<c:forEach items="${list }" var="list">
										<tr>
											<td>${list.id }</td>
											<td>${list.city }</td>
											<td>${list.weatherRegime }</td>
											<td>${list.temprature }</td>
											<td>${list.windPower }</td>
											<td>${list.dominatWind }</td>
											<td>${list.pollutionPower }</td>
											<td>${list.refreshDate }</td>
											<td>${list.userBean.username }</td>
											<td class="btn btn-default"><a
												href=" ${pageContext.request.contextPath}/reporter3/toUpdateWeatherInfoAction?id=${list.id}">修改</a>
												&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
												<a onclick="return checkDel()"
												href=" ${pageContext.request.contextPath}/reporter3/deleteWeatherInfoAction?id=${list.id }">删除</a>
											</td>
										</tr>

							</c:forEach>

						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
	<script
		src="${pageContext.request.contextPath}/common/js/jquery.min.js"></script>
	<script
		src="${pageContext.request.contextPath}/common/js/bootstrap.min.js"></script>
	<script
		src="${pageContext.request.contextPath}/common/js/tableExport.js"></script>
	<script
		src="${pageContext.request.contextPath}/common/js/jquery.base64.js"></script>
	<script
		src="${pageContext.request.contextPath}/common/js/bootstrap-table.js"></script>
	<script
		src="${pageContext.request.contextPath}/common/js/bootstrap-table-export.js"></script>
</body>
</html>